def baseDir="D:/groovy/groovyspace/project1";
new File(baseDir, 'test.txt').eachLine { line ->
    println line
}